function s1_hello(){
  echo "hello,world!"
}

function s2_tell_who_i_am(){
  echo "root"
}

function s3_which_distro_do_i_use(){
  if [ -f /etc/os-release ]; then
    distro_name=$(grep '^NAME=' /etc/os-release | awk -F '=' '{print $2}' | sed 's/\' '//g')
    echo "NAME=\"$distro_name\""
  elif [ -f /etc/centos-release ]; then
    distro_name=$(cat /etc/centos-release)
    echo "NAME=\"$distro_name\""
  else
    echo "Error: Neither /etc/os-release nor /etc/centos-release file found."
  fi
}

function s4_view_my_cpu_arch(){
  uname -m
}

function s5_show_first_scsi_disk_size(){
  local disk_size_gb=$(lablk -l -o NAME,SIZE | grep '^sda ' | awk '{print $s2}' | sed' s/G$// '| awk '{print $1}')
  echo $disk_size_gb
}

function s6_show_main_memory_size_in_megabytes(){
  free -m | grep "Mem:" | awk '{print $2}'
}
